local que_yifa = fk.CreateSkill {
    name = "que_yifa",
    anim_type = "offensive",
    tags = { Skill.Wake }
}
Fk:loadTranslationTable {
    ["que_yifa"] = "役發",
    [":que_yifa"] = "觉醒技，每轮开始时，若你本局游戏通过〖役白〗弃置的牌数超过体力上限的两倍，你回复一点体力，"..
    "交换〖役白〗的X和Y，然后立刻发动一次〖役白〗，然后增加一次〖役中〗的调整次数。",

     ["$que_yifa1"] = " ",
      ["$que_yifa2"] = " ",
}


que_yifa:addEffect(fk.RoundStart, {
    can_trigger = function(self, event, target, player, data)
        return player:hasSkill(que_yifa.name) and player:usedSkillTimes(que_yifa.name, Player.HistoryGame) == 0
    end,
    can_wake = function(self, event, target, player, data)
        return player:getMark("@que_yibai") > player.maxHp * 2
    end,
    on_use = function(self, event, target, player, data)
        local room = player.room
        room:setPlayerMark(player, "que_yifa", 1)
        room:setPlayerMark(player, "@que_yibai", 0)
        room:recover {
            who = player,
            num = 1,
            recoverBy = player,
            skillName = que_yifa.name,
        }
        Fk.skills["que_yibai"]:doCost(event, target, player, data)
    end,
})

return que_yifa
